﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/WebMaster.Master" AutoEventWireup="true"
    CodeBehind="RPTSandInspection.aspx.cs" Inherits="MaxStudio.Concrete.Web.Pages.RPTSandInspection" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script language="javascript" type="text/javascript">
        function CloseDialog() {
            $("#dialog").dialog("close");
        }
        function CloseEditDialog() {
            $("#EditDialog").dialog("close");
        }
        function OpenDialog() {
            $("#EditDialog").dialog("open");
            return false;
        }
        function OpenConfirmDialog() {
            $("#dialog-confirm").dialog("open");
            return false;
        }
        function CloseConfirmDialog() {
            $("#dialog-confirm").dialog("close");
            return false;
        }
        $(function() {
            var dlg = jQuery("#dialog").dialog({
                draggable: true,
                resizable: true,
                closed: true,
                show: 'Transfer',
                hide: 'Transfer',
                autoOpen: false,
                width: 800,
                minHeight: 10,
                minwidth: 10
            });
            dlg.parent().appendTo(jQuery("form:first"));

            var Editdlg = jQuery("#EditDialog").dialog({
                draggable: true,
                resizable: true,
                closed: true,
                show: 'Transfer',
                hide: 'Transfer',
                autoOpen: false,
                width: 800,
                minHeight: 10,
                minwidth: 10
            });
            Editdlg.parent().appendTo(jQuery("form:first"));

            var confirm = jQuery("#dialog-confirm").dialog({
                draggable: true,
                resizable: true,
                closed: true,
                show: 'Transfer',
                hide: 'Transfer',
                autoOpen: false,
                width: 300,
                minHeight: 10,
                minwidth: 10
            });
            confirm.parent().appendTo(jQuery("form:first"));
        });
        $(function() {
            $("#dialog-confirm").dialog({
                resizable: false,
                autoOpen: false,
                height: 140,
                modal: true
            });
        });

           
    </script>

    <div class="LinkMap">
        >>我的位置 >> 报表 >> 砂检验报告
    </div>
    <div>
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">功能介绍</a></li>
                <li><a href="#tabs-2">砂检验报告</a></li>
            </ul>
            <div id="tabs-1">
                该功能模块提供报表的添加，删除，修改功能。</div>
            <div id="tabs-2">
                <div style="width: auto; margin: 10px;">
                    <p>
                        <a href="#" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin">
                        </span>砂检验报告</a></p>
                    <asp:UpdatePanel ID="UPGridView" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="gvRPTSandInspectionList" runat="server" CssClass="GridViewStyle" OnRowCommand="gvRPTSandInspectionList_RowCommand"
                                DataKeyNames="Id" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True"
                                OnPageIndexChanging="gvRPTSandInspectionList_PageIndexChanging" PageSize="20">
                                <FooterStyle CssClass="GridViewFooterStyle" />
                                <RowStyle CssClass="GridViewRowStyle" />
                                <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                                <PagerStyle CssClass="GridViewPagerStyle" />
                                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                <HeaderStyle CssClass="GridViewHeaderStyle" />
                                <Columns>
                                    <asp:BoundField DataField="Id" HeaderText="编号" />
                                    <asp:BoundField DataField="ProjectName" HeaderText="工程项目" />
                                    <asp:BoundField DataField="Material" HeaderText="材料名称" />
                                    <asp:BoundField DataField="TestDate" HeaderText="试验日期" /> 
                                    <asp:TemplateField HeaderText="修改">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbtnEdit" runat="server" CausesValidation="False" CommandName="Select"
                                                Text="修改" CommandArgument='<%# Bind("Id") %>' OnClientClick="OpenDialog();"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="删除">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbtnDelete" runat="server" CausesValidation="False" CommandName="del"
                                                Text="删除" CommandArgument='<%# Bind("Id") %>' OnClientClick="OpenConfirmDialog()"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <!-- ui-dialog -->
                    <div id="dialog" title="添加砂检验报告">
                        <div style="height: auto;">
                            <div>
                                <div style="width: 100%; float: left">
                                    LT/S实-12-
                                </div>
                            </div>
                            <div>
                                <div style="width: 60px; float: left">
                                    工程项目:</div>
                                <asp:TextBox runat="server" ID="txtProjectName" Width="670px"></asp:TextBox>
                            </div>
                            <div style="width: 100%; float: left;">
                                <div style="width: 370px; float: left">
                                    <div style="width: 60px; float: left">
                                        材料名称:</div>
                                    <asp:TextBox runat="server" ID="txtMaterial" Width="170px"></asp:TextBox>
                                </div>
                                <div style="width: 370px; float: left">
                                    <div style="width: 60px; float: left">
                                        试验日期:</div>
                                    <asp:TextBox runat="server" ID="txtTestDate" Width="170px"></asp:TextBox>
                                </div>
                            </div>
                            <div style="height: 30px; text-align: center; width: 100%; float: left;">
                                <b>检验结果</b>
                            </div>
                            <div style="width: 100%; float: left;">
                                <div style="width: 160px; float: left">
                                    <div style="width: 70px; float: left">
                                        含泥量（%）:</div>
                                    <asp:TextBox runat="server" ID="txtSiltContent" Width="80px"></asp:TextBox>
                                </div>
                                <div style="width: 150px; float: left">
                                    <div style="width: 60px; float: left">
                                        石粉含量:</div>
                                    <asp:TextBox runat="server" ID="txtStonePowderContent" Width="80px"></asp:TextBox>
                                </div>
                                <div style="width: 150px; float: left">
                                    <div style="width: 60px; float: left">
                                        泥块含量:</div>
                                    <asp:TextBox runat="server" ID="txtClodContent" Width="80px"></asp:TextBox>
                                </div>
                                <div style="width: 150px; float: left">
                                    <div style="width: 60px; float: left">
                                        有害物质:</div>
                                    <asp:TextBox runat="server" ID="txtHarmfulMaterial" Width="80px"></asp:TextBox>
                                </div>
                                <div style="width: 150px; float: left">
                                    <div style="width: 60px; float: left">
                                        坚固性:</div>
                                    <asp:TextBox runat="server" ID="txtConsistence" Width="80px"></asp:TextBox>
                                </div>
                            </div>
                            <div style="width: 100%; float: left;">
                                <div style="width: 160px; float: left">
                                    <div style="width: 70px; float: left">
                                        压碎指标:</div>
                                    <asp:TextBox runat="server" ID="txtCrushingIndex" Width="80px"></asp:TextBox>
                                </div>
                                <div style="width: 150px; float: left">
                                    <div style="width: 60px; float: left">
                                        表观密度（kg/m3）:</div>
                                    <asp:TextBox runat="server" ID="txtApparentDensity" Width="80px"></asp:TextBox>
                                </div>
                                <div style="width: 150px; float: left">
                                    <div style="width: 60px; float: left">
                                        堆积密度（kg/m3）:</div>
                                    <asp:TextBox runat="server" ID="txtStackingDensity" Width="80px"></asp:TextBox>
                                </div>
                                <div style="width: 150px; float: left">
                                    <div style="width: 60px; float: left">
                                        空隙率:</div>
                                    <asp:TextBox runat="server" ID="txtVoids" Width="80px"></asp:TextBox>
                                </div>
                                <div style="width: 150px; float: left">
                                    <div style="width: 60px; float: left">
                                        碱集料反应:</div>
                                    <asp:TextBox runat="server" ID="txtJianJiLiaoReaction" Width="80px"></asp:TextBox>
                                </div>
                            </div>
                            <div style="text-align: center;">
                                <table style="width: 100%;">
                                    <tr>
                                        <td>
                                            方孔筛
                                        </td>
                                        <td>
                                            9.50mm
                                        </td>
                                        <td>
                                            4.75mm
                                        </td>
                                        <td>
                                            2.36mm
                                        </td>
                                        <td>
                                            1.18mm
                                        </td>
                                        <td>
                                            0.06mm
                                        </td>
                                        <td>
                                            0.30mm
                                        </td>
                                        <td>
                                            0.15mm
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            一区
                                        </td>
                                        <td>
                                            0
                                        </td>
                                        <td>
                                            10～0
                                        </td>
                                        <td>
                                            35～5
                                        </td>
                                        <td>
                                            65～35
                                        </td>
                                        <td>
                                            85～71
                                        </td>
                                        <td>
                                            95～80
                                        </td>
                                        <td>
                                            100～90
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            二区
                                        </td>
                                        <td>
                                            0
                                        </td>
                                        <td>
                                            10～1
                                        </td>
                                        <td>
                                            25～0
                                        </td>
                                        <td>
                                            50～10
                                        </td>
                                        <td>
                                            70～41
                                        </td>
                                        <td>
                                            92～70
                                        </td>
                                        <td>
                                            100～90
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            三区
                                        </td>
                                        <td>
                                            0
                                        </td>
                                        <td>
                                            0～10
                                        </td>
                                        <td>
                                            0～25
                                        </td>
                                        <td>
                                            10～50
                                        </td>
                                        <td>
                                            41～70
                                        </td>
                                        <td>
                                            70～92
                                        </td>
                                        <td>
                                            80～100
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            累计筛余量
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtAllowance1" Width="20px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtAllowance2" Width="20px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtAllowance3" Width="20px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtAllowance4" Width="20px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtAllowance5" Width="20px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtAllowance6" Width="20px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtAllowance7" Width="20px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div>
                                <div style="width: 70px; float: left">
                                    试验标准:</div>
                                <asp:TextBox runat="server" ID="txtTestStandard" Width="670px"></asp:TextBox>
                            </div>
                            <div>
                                <div style="width: 70px; float: left">
                                    检验结论:</div>
                                <asp:TextBox runat="server" ID="txtTestResult" Width="670px"></asp:TextBox>
                            </div>
                            <div>
                                <div style="width: 70px; float: left">
                                    备注:</div>
                                <asp:TextBox runat="server" ID="txtRemark" Width="670px"></asp:TextBox>
                            </div>
                            <div style="width: 100%; float: left">
                                <div style="width: 250px; float: left">
                                    <div style="width: 70px; float: left">
                                        复核:</div>
                                    <asp:TextBox runat="server" ID="txtReview" Width="120px"></asp:TextBox>
                                </div>
                                <div style="width: 250px; float: left">
                                    <div style="width: 70px; float: left">
                                        审核:</div>
                                    <asp:TextBox runat="server" ID="txtApproval" Width="120px"></asp:TextBox>
                                </div>
                                <div style="width: 250px; float: left">
                                    <div style="width: 70px; float: left">
                                        检验:</div>
                                    <asp:TextBox runat="server" ID="txtTest" Width="120px"></asp:TextBox>
                                </div>
                            </div>
                            <br />
                            <br />
                            <div style="width: 100%; text-align: center">
                                <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click"
                                    OnClientClick="CloseDialog()" />
                                <input id="btnCancel" type="button" value="Cancel" onclick="CloseDialog()" />
                            </div>
                        </div>
                    </div>
                    <!-- ui- edit dialog -->
                    <div id="EditDialog" title="砂检验报告修改">
                        <asp:UpdatePanel ID="UPEdit" runat="server">
                            <ContentTemplate>
                                <div style="height: auto;">
                                    <asp:Label runat="server" ID="lbEidtId" Visible="false"></asp:Label>
                                    <div>
                                        <div style="width: 100%; float: left">
                                            LT/S实-12-
                                        </div>
                                    </div>
                                    <div>
                                        <div style="width: 60px; float: left">
                                            工程项目:</div>
                                        <asp:TextBox runat="server" ID="txtEditProjectName" Width="670px"></asp:TextBox>
                                    </div>
                                    <div style="width: 100%; float: left;">
                                        <div style="width: 370px; float: left">
                                            <div style="width: 60px; float: left">
                                                材料名称:</div>
                                            <asp:TextBox runat="server" ID="txtEditMaterial" Width="170px"></asp:TextBox>
                                        </div>
                                        <div style="width: 370px; float: left">
                                            <div style="width: 60px; float: left">
                                                试验日期:</div>
                                            <asp:TextBox runat="server" ID="txtEditTestDate" Width="170px"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div style="height: 30px; text-align: center; width: 100%; float: left;">
                                        <b>检验结果</b>
                                    </div>
                                    <div style="width: 100%; float: left;">
                                        <div style="width: 160px; float: left">
                                            <div style="width: 70px; float: left">
                                                含泥量（%）:</div>
                                            <asp:TextBox runat="server" ID="txtEditSiltContent" Width="80px"></asp:TextBox>
                                        </div>
                                        <div style="width: 150px; float: left">
                                            <div style="width: 60px; float: left">
                                                石粉含量:</div>
                                            <asp:TextBox runat="server" ID="txtEditStonePowderContent" Width="80px"></asp:TextBox>
                                        </div>
                                        <div style="width: 150px; float: left">
                                            <div style="width: 60px; float: left">
                                                泥块含量:</div>
                                            <asp:TextBox runat="server" ID="txtEditClodContent" Width="80px"></asp:TextBox>
                                        </div>
                                        <div style="width: 150px; float: left">
                                            <div style="width: 60px; float: left">
                                                有害物质:</div>
                                            <asp:TextBox runat="server" ID="txtEditHarmfulMaterial" Width="80px"></asp:TextBox>
                                        </div>
                                        <div style="width: 150px; float: left">
                                            <div style="width: 60px; float: left">
                                                坚固性:</div>
                                            <asp:TextBox runat="server" ID="txtEditConsistence" Width="80px"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div style="width: 100%; float: left;">
                                        <div style="width: 160px; float: left">
                                            <div style="width: 70px; float: left">
                                                压碎指标:</div>
                                            <asp:TextBox runat="server" ID="txtEditCrushingIndex" Width="80px"></asp:TextBox>
                                        </div>
                                        <div style="width: 150px; float: left">
                                            <div style="width: 60px; float: left">
                                                表观密度（kg/m3）:</div>
                                            <asp:TextBox runat="server" ID="txtEditApparentDensity" Width="80px"></asp:TextBox>
                                        </div>
                                        <div style="width: 150px; float: left">
                                            <div style="width: 60px; float: left">
                                                堆积密度（kg/m3）:</div>
                                            <asp:TextBox runat="server" ID="txtEditStackingDensity" Width="80px"></asp:TextBox>
                                        </div>
                                        <div style="width: 150px; float: left">
                                            <div style="width: 60px; float: left">
                                                空隙率:</div>
                                            <asp:TextBox runat="server" ID="txtEditVoids" Width="80px"></asp:TextBox>
                                        </div>
                                        <div style="width: 150px; float: left">
                                            <div style="width: 60px; float: left">
                                                碱集料反应:</div>
                                            <asp:TextBox runat="server" ID="txtEditJianJiLiaoReaction" Width="80px"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div style="text-align: center;">
                                        <table style="width: 100%;">
                                            <tr>
                                                <td>
                                                    方孔筛
                                                </td>
                                                <td>
                                                    9.50mm
                                                </td>
                                                <td>
                                                    4.75mm
                                                </td>
                                                <td>
                                                    2.36mm
                                                </td>
                                                <td>
                                                    1.18mm
                                                </td>
                                                <td>
                                                    0.06mm
                                                </td>
                                                <td>
                                                    0.30mm
                                                </td>
                                                <td>
                                                    0.15mm
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    一区
                                                </td>
                                                <td>
                                                    0
                                                </td>
                                                <td>
                                                    10～0
                                                </td>
                                                <td>
                                                    35～5
                                                </td>
                                                <td>
                                                    65～35
                                                </td>
                                                <td>
                                                    85～71
                                                </td>
                                                <td>
                                                    95～80
                                                </td>
                                                <td>
                                                    100～90
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    二区
                                                </td>
                                                <td>
                                                    0
                                                </td>
                                                <td>
                                                    10～1
                                                </td>
                                                <td>
                                                    25～0
                                                </td>
                                                <td>
                                                    50～10
                                                </td>
                                                <td>
                                                    70～41
                                                </td>
                                                <td>
                                                    92～70
                                                </td>
                                                <td>
                                                    100～90
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    三区
                                                </td>
                                                <td>
                                                    0
                                                </td>
                                                <td>
                                                    0～10
                                                </td>
                                                <td>
                                                    0～25
                                                </td>
                                                <td>
                                                    10～50
                                                </td>
                                                <td>
                                                    41～70
                                                </td>
                                                <td>
                                                    70～92
                                                </td>
                                                <td>
                                                    80～100
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    累计筛余量
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txtEditAllowance1" Width="20px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txtEditAllowance2" Width="20px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txtEditAllowance3" Width="20px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txtEditAllowance4" Width="20px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txtEditAllowance5" Width="20px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txtEditAllowance6" Width="20px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:TextBox runat="server" ID="txtEditAllowance7" Width="20px"></asp:TextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div>
                                        <div style="width: 70px; float: left">
                                            试验标准:</div>
                                        <asp:TextBox runat="server" ID="txtEditTestStandard" Width="670px"></asp:TextBox>
                                    </div>
                                    <div>
                                        <div style="width: 70px; float: left">
                                            检验结论:</div>
                                        <asp:TextBox runat="server" ID="txtEditTestResult" Width="670px"></asp:TextBox>
                                    </div>
                                    <div>
                                        <div style="width: 70px; float: left">
                                            备注:</div>
                                        <asp:TextBox runat="server" ID="txtEditRemark" Width="670px"></asp:TextBox>
                                    </div>
                                    <div style="width: 100%; float: left">
                                        <div style="width: 250px; float: left">
                                            <div style="width: 70px; float: left">
                                                复核:</div>
                                            <asp:TextBox runat="server" ID="txtEditReview" Width="120px"></asp:TextBox>
                                        </div>
                                        <div style="width: 250px; float: left">
                                            <div style="width: 70px; float: left">
                                                审核:</div>
                                            <asp:TextBox runat="server" ID="txtEditApproval" Width="120px"></asp:TextBox>
                                        </div>
                                        <div style="width: 250px; float: left">
                                            <div style="width: 70px; float: left">
                                                检验:</div>
                                            <asp:TextBox runat="server" ID="txtEditTest" Width="120px"></asp:TextBox>
                                        </div>
                                    </div>
                                    <br />
                                    <div>
                                        最后修改人:
                                        <asp:Label runat="server" ID="lbLastModier"></asp:Label>
                                    </div>
                                    <div>
                                        最后修改时间:
                                        <asp:Label runat="server" ID="lbLastModifyDate"></asp:Label>
                                    </div>
                                    <br />
                                    <div style="width: 100%; text-align: center">
                                        <asp:Button ID="btnEdit" runat="server" Text="Submit" OnClick="btnEdit_Click" OnClientClick="CloseEditDialog()" />
                                        <input id="btnCancelEdit" type="button" value="Cancel" onclick="CloseEditDialog()" />
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    <!-- ui- delete dialog -->
                    <div id="dialog-confirm" title="删除确认?">
                        <asp:UpdatePanel ID="upDelete" runat="server">
                            <ContentTemplate>
                                <p>
                                    <span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
                                    确定要删除吗？</p>
                                <asp:Label runat="server" ID="lbDeleteId" Visible="false"></asp:Label>
                                <div style="width: 270px; text-align: right">
                                    <asp:Button ID="btnConfirmDelete" runat="server" Text="Submit" OnClick="btnDelete_Click"
                                        OnClientClick="CloseConfirmDialog()" />
                                    <input id="btnCancelDelete" type="button" value="Cancel" onclick="CloseConfirmDialog()" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
